package com.heima.comment.user.pojos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("ap_comment_is_like")
public class ApCommentIsLike implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 评论id
     */
    @Id
    @Field(name = "commentId")  //评论id
    private String commentId;

    /**
     * 点赞用户Id
     */
    @Field(name = "userId")  // 当前用户id
    private Integer userId;
}
